package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.*
import com.changpay.zywy.mvp.model.*


/**
 * Created by chenxz on 2018/5/27.
 */
class MinePresenter : BasePresenter<MineContract.Model, MineContract.View>(), MineContract.Presenter {
    override fun getUserInfo(token: String) {
        mModel?.getUserInfo(token)?.ss(mModel, mView) {
            mView?.showUserInfo(it.result)
        }
    }

    override fun createModel(): MineContract.Model? = MineModel()

}